package thread2;

public class ThreadDemo2 implements Runnable {
    @Override
    public void run() {
        System.out.println("run thread");
    }

    public static void main(String[] args) {
        ThreadDemo2 demo2 = new ThreadDemo2();
        Thread thread = new Thread(demo2);
        thread.start();
    }
}
